package com.tyk.bookstore.back.storage.manager.excel.model;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.annotation.write.style.HeadFontStyle;
import com.alibaba.excel.annotation.write.style.HeadStyle;
import com.alibaba.excel.enums.poi.BorderStyleEnum;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author tyk
 * @description StockExcelVo
 */
@Data
@Accessors(chain = false)
@HeadStyle(fillForegroundColor = 9, borderBottom = BorderStyleEnum.THIN)
@HeadFontStyle(fontHeightInPoints = 11)
@ContentStyle(borderTop = BorderStyleEnum.THIN, borderBottom = BorderStyleEnum.THIN, borderLeft = BorderStyleEnum.THIN, borderRight = BorderStyleEnum.THIN)
public class StockExcelVo {

    @ExcelProperty("仓库ID")
    private String warehouseId;

    @ExcelProperty("仓库名称")
    private String warehouseName;

    @ExcelProperty("书籍ID")
    private String bookId;

    @ExcelProperty("书籍编号")
    private String bookNo;

    @ExcelProperty("书籍ISBN")
    private String bookIsbn;

    @ExcelProperty("书籍名称")
    private String bookName;

    @ExcelProperty("库存数量")
    private Long num;

    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @ExcelProperty("更新时间")
    private LocalDateTime updateTime;
}
